package com.mytijian;

import com.mytijian.exception.ErrorInfo;

public enum WebExceptionEnum implements ErrorInfo {
	
	REQUESTID_USED("101100", "RequestId have been used"),
	DATA_SIGN_INVALID("101101", "Data sign invalid"),
	DATA_OUT_PUT_ERROR("101102", "data out put error");
	
	private String errorCode;
	private String errorMsg;

	private WebExceptionEnum(String errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	@Override
	public String getErrorCode() {
		return errorCode;
	}

	@Override
	public String getErrorMsg() {
		return errorMsg;
	}

}
